/**
 * @param w window
 * @returns {string} 指定窗口的url
 */
function currentUrl(w) {
    return w.location.protocol + "//" + w.location.host;
    // return "http://127.0.0.1:8090"
}

function showWarmMsg(context,response) {

    context.$message({
        type: 'warning',
        message: response.body.msg
    });
}
const CRAWLER_MAPPING = "/v1/crawler";
const CRAWLER_CONFIG_MAPPING = CRAWLER_MAPPING+"/config";
const DEFAULT_CRAWLER_CONFIG_MAPPING = CRAWLER_CONFIG_MAPPING + "/default";
const WEIBO_USER_INFO_MAPPING = CRAWLER_MAPPING+"/data/weibo/user";
